package jtk.project4.fleet.ibatis.dao;

import java.sql.SQLException;
import java.util.List;


import jtk.project4.fleet.domain.MtcData;

//import nl.coderight.jazz.dialog.MessageDialog;
//import nl.coderight.jazz.dialog.MessageType;


public class MtcDataDao extends IbatisDao{
	
	public List selectMtcData() throws SQLException {
		List selectMtcData = null;
			selectMtcData =getSqlMap().queryForList("SELECT_MTCDATA", null);
		return selectMtcData;
	}

	public int deleteMtcData(MtcData mtcdata) throws SQLException{
		return (int) getSqlMap().delete("DELETE_MTCDATA", mtcdata);
	}
	
	public int updateMtcData(MtcData mtcdata) throws SQLException{
		return (int) getSqlMap().update("UPDATE_MTCDATA", mtcdata);
	}
	
	public MtcData insertMtcData(MtcData mtcdata) throws SQLException{
		return (MtcData) getSqlMap().insert("INSERT_MTCDATA", mtcdata);
	}

	
	
	
	
	public static void main (String args[]) throws SQLException{
		MtcData mtcdata;
		mtcdata = new MtcData();
		mtcdata.setObjectId(123);
		new MtcDataDao().insertMtcData(mtcdata);
		}
}
